package com.ruoyi.api.controller;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.api.api.GaodeMapAPI;
import com.ruoyi.api.domain.GaodeMap;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 高德地图Controller
 *
 * @author 寻觅
 * @since 2025-05-26
 */
@RestController
@RequestMapping("/gaode/map")
public class GaodeMapController {

    @Autowired
    GaodeMapAPI gaodeMapAPI;

    /**
     * 高德地图
     * @param landmark
     * @return
     */
    @GetMapping("/getLandmark")
    public AjaxResult getLandmark(String landmark) {
        GaodeMap gaodeMap = gaodeMapAPI.getLandmark(landmark);
        return AjaxResult.success(gaodeMap);
    }

}
